package com.tiankun.eurekaticket.service;

import com.tiankun.eurekaticket.pojo.Ticket;

import java.util.List;
import java.util.Map;

/**
 * @Author liaopeng
 * @Date 2020/11/13 10:30
 * @Version 1.0
 **/
public interface TicketService {

    //新增优惠券
    public Integer insert(Ticket ticket);

    //修改优惠券上下架状态
    public Integer update(Integer id,Integer state);

    //查询单张优惠券
    public Ticket find(Integer id);

    //查询已设计的优惠券
    public List<Map<String,Object>> findAllticketList(Integer shopid);

    //模糊查询已设计的优惠券
    public List<Map<String,Object>> findAllticketListByLike(Integer shopid,String name,String random);

    //用户领取优惠券列表
    public List<Map<String,Object>> userList(Integer shopid);

    //模糊查询用户领取优惠券列表
    public List<Map<String,Object>> userListLike(Integer shopid,String name,Integer usestate,String random,String userName);

    //前台店铺查询已上架可领取的优惠券
    public List<Map<String,Object>> findPutawayticketList(Integer shopid);
}
